SftTree/NET 2.0

MakeOptimal Method, SplitterClass Class

Softel vdm, Inc.

Positions the splitter bar optimally, so the left pane can display as much data as possible without a horizontal scroll bar.

Syntax      SplitterClass Class (Softelvdm.SftTreeNET)

VB   

Public Sub MakeOptimal()

C#   

public void MakeOptimal();

C++   

public: void MakeOptimal();

Comments

The MakeOptimal method positions the splitter bar optimally, so the left pane can display as much data as possible without a horizontal scroll bar.

MakeOptimal is only available for a split tree control (see Splitter.Visible).

Before using MakeOptimal, the best horizontal extent for the panes must be set using the HorizontalExtent and HorizontalExtentRight properties or the RecalcHorizontalExtent method. Once set, MakeOptimal can then be used to position the splitter bar optimally, so the left pane can display as much data as possible without a horizontal scroll bar.

MakeOptimal uses the current width of the tree control window to determine the allowable position of the splitter bar. If the tree control window is too small, the splitter bar may not be optimally set. This is particularly noticeable if the tree control window is resized after MakeOptimal is used.

The coordinates of the splitter bar can be retrieved using the Splitter.Area property.

The Splitter.Width property is used to change the width of the splitter bar.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com